local fk__guzhu = fk.CreateSkill {

  name = "fk__guzhu",

  tags = {  },

}

local U = require "packages/utility/utility"


fk__guzhu:addEffect(fk.TargetSpecified, {

  anim_type = "support",

  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(fk__guzhu.name) and data.card.type == Card.TypeBasic and data.firstTarget and not player:isKongcheng()
    and table.every(player.player_cards[Player.Hand], function(id) return not player:prohibitDiscard(Fk:getCardById(id)) end)
  end,
  on_cost = function (self, event, target, player, data)
    return player.room:askForSkillInvoke(player, fk__guzhu.name, data, "#fk__guzhu-invoke::"..target.id..":"..data.card.name)
  end,
  on_use = function(self, event, target, player, data)
    player:throwAllCards("h")
    data.use.additionalEffect = (data.use.additionalEffect or 0) + 1
  end,
})

return fk__guzhu